using Nop.Core.Infrastructure;
using System;
using System.Timers;
namespace Nop.Plugin.Picture.CDN.Licensing
{
	public class ValidateStartUp : IStartupTask
	{
		public int Order
		{
			get
			{
				return 0;
			}
		}
		public void Execute()
		{
            // disabled timer check the liencekey.
            //new Timer(3600000.0)
            //{
            //    Enabled = true
            //}.Elapsed += new ElapsedEventHandler(ValidateStartUp.timer_Elapsed);
		}
		private static void timer_Elapsed(object sender, ElapsedEventArgs e)
		{
			Validate validate = new Validate();
			validate.SendDataToApi();
		}
	}
}
